# wails 源码
WAILS_VERSION="v2.5.1"
WAILS_URL="https://codeload.github.com/wailsapp/wails/tar.gz/refs/tags/${WAILS_VERSION}"
wget -O /tmp/wails.tar.gz $WAILS_URL

# 解压源码
tar -xzf /tmp/wails.tar.gz -C /tmp/
mv /tmp/wails-${WAILS_VERSION} /tmp/wails

# 进入源码目录
cd /tmp/wails

# 编译 Wails
make build

# 安装 Wails
cp bin/wails /usr/local/bin/
rm -rf /tmp/wails
rm /tmp/wails.tar.gz